<!DOCTYPE html  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro" >
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>一号轴承网</title>
    <meta name="keywords" content="一号轴承网">
    <meta name="description" content="一号轴承网">
    <link rel="shortcut icon" href="/img/logo.ico" type="image/x-icon">
    <link href="/css/font-awesome.css?v=4.4.0"
          th:href="@{/css/font-awesome.css?v=4.4.0}" rel="stylesheet">
    <link href="/css/plugins/bootstrap-table/bootstrap-table.min.css"
          th:href="@{/css/plugins/bootstrap-table/bootstrap-table.min.css}"
          rel="stylesheet">
    <link href="/css/plugins/jsTree/style.min.css" rel="stylesheet">
    <link href="/css/plugins/jqTreeGrid/jquery.treegrid.css"
          rel="stylesheet">
    <!--summernote css -->
    <link href="/css/plugins/summernote/summernote-0.8.8.css"
          rel="stylesheet">
    <link href="css/animate.css" th:href="@{/css/animate.css}"
          rel="stylesheet">
    <link href="/css/plugins/chosen/chosen.css" rel="stylesheet">
    <link rel="stylesheet" href="/css/plugins/datapicker/bootstrap-datetimepicker.css">
    <link type="text/css" href="/abd/search_result.css" rel="stylesheet">
    <link type="text/css" href="/abd/search_ad.css" rel="stylesheet">
    <link href="/css/front/style.css" rel="stylesheet" type="text/css">
    <link href="css/bootstrap.min.css?v=3.3.6"
          th:href="@{/css/bootstrap.min.css?v=3.3.6}" rel="stylesheet">
    <!--[if IE 7]>
    <link href="http://www.ic.net.cn/media/css/ui/ie7fix.css" rel="stylesheet" type="text/css"/> <![endif]-->
</head>
<body>
<div class="top">
    <div class="top_m b-r-s">
        <div class="top_l">
            <span>欢迎来到“<a href="/front/index">一号轴承网”</a></span>
            <span th:if="${!isLogin}">
                <a  style="font-size: 15px;color: #ff7300;font-weight:bold;" rel="nofollow" href="/login">登录</a>
                <a  style="font-size: 15px;color: #ff7300;font-weight:bold;" rel="nofollow" href="/front/register">免费注册</a>
            </span>
            <span th:if="${isLogin}">
                <span shiro:hasRole="member">
                    <a style="font-size: 15px;color: #ff7300;font-weight:bold;" rel="nofollow" href="/member/welcome">会员中心</a>
                </span>
                <span shiro:hasRole="admin">
                    <a style="font-size: 15px;color: #ff7300;font-weight:bold;" rel="nofollow" href="/member/welcome">后台管理</a>
                </span>
            </span>
        </div>
    </div>
    <span style="float: right;padding-right: 30px;" th:if="${isLogin}">
        <a style="font-size: 15px;color: #ff7300;font-weight:bold;" rel="nofollow" href="/logout">退出</a>
    </span>
</div>
<div class="header">
    <div class="header_t">
        <div class="logo">
            <a title="一号轴承网" href="#"><img src="/img/yihao.jpg" alt="一号轴承网" width="191" height="58"></a>
            <img src="/img/logo_notes.jpg" alt="一号轴承网" width="191" height="58">
        </div>
            <!--<a title="一号轴承网" href="#"><img src="/img/yihao1.png" alt="一号轴承网" width="193" height="70"></a></div>-->
        <form  action="/front/product/tosearch" method="get" onsubmit="return checkModel()">
            <input type="hidden" id="hid" value="1">
            <div class="search">
                <div class="search_input">
                    <div id="s_border">
                        <input th:value="${productSearch.userId}" type="hidden" name="userId" id="userId"/>
                        <input type="text"  onclick="searchRepertory()" class="search_txt" name="model" th:value="${productSearch.model}" style="width: 100%;">
                    </div>
                    <input type="submit" class="search_btn" value="">
                </div>
            </div>
            <script>
                function checkModel(){
                    var ttt = $("#model").val();
                    if (ttt==null || ttt.length<3){
                        alert("型号不能为空或者少于三位")
                        return false;
                    }
                    return true;
                }
            </script>
        </form>
    </div>
</div>
<div class="content" style="margin-top: 20px">
    <div class="main w m-b-10">
        <div class="position"><a class="home" href="/front/index">首页</a></div>

    <!--主内容区begin-->

        <form id="searchForm">
            <div>
                <ul id="left_ads">
                    <li class="left_ads">
                        <img src="/images/ad/ad-1.jpg" >
                        <a href="#" target="_self"></a>
                    </li>
                    <li class="left_ads">
                        <img src="/images/ad/ad-2.gif">
                        <a href="#" target="_self"></a>
                    </li>
                    <li class="left_ads">
                        <img src="/images/ad/ad-3.gif">
                        <a href="#" target="_self"></a>
                    </li>
                    <li class="left_ads">
                        <img src="/images/ad/ad-4.gif">
                        <a href="#" target="_self"></a>
                    </li>
                    <li class="left_ads">
                        <img src="/images/ad/ad-5.gif">
                        <a href="#" target="_self"></a>
                    </li>
                    <li class="left_ads">
                        <img src="/images/ad/ad-6.gif">
                        <a href="#" target="_self"></a>
                    </li>
                    <li class="left_ads">
                        <img src="/images/ad/ad-7.gif">
                        <a href="#" target="_self"></a>
                    </li>
                </ul>
                <div class="right_results">
                    <div class="ibox-body">
                        <div class="fixed-table-toolbar">
                            <div class="columns pull-left" shiro:hasRole="member">
                                <button type="button" class="btn  btn-primary" onclick="batchXunjia()">
                                    <i class="fa fa-plus" aria-hidden="true"></i>批量询价
                                </button>
                            </div>
                            <div class="columns pull-right">
                                <input th:value="${productSearch.userId}" type="hidden" name="userId" id="userId"/>
                                <div class="col-sm-2">
                                    <label>型号：</label><input id="model"  type="text" name="model" th:value="${productSearch.model==null?'':productSearch.model}" class="form-control" />
                                </div>
                                <div class="col-sm-2">
                                    <label>品牌：</label><input id="brand" type="text" name="brand" th:value="${productSearch.brand==null?'':productSearch.brand}" class="form-control"/>
                                </div>
                                <div class="col-sm-2">
                                    <label>类型：</label><input id="type" type="text" name="type" th:value="${productSearch.type==null?'':productSearch.type}" class="form-control"/>
                                </div>
                                <div class="col-sm-2">
                                    <label>城市：</label>
                                    <select  class="form-control" name="city" id="city" th:field="*{productSearch.city}">
                                        <option value="">请选择</option>
                                        <option value="北京">北京</option>
                                        <option value="深圳">深圳</option>
                                        <option value="广东">广东(不含深圳)</option>
                                        <option value="上海">上海</option>
                                        <option value="江苏">江苏</option>
                                        <option value="四川">四川</option>
                                        <option value="浙江">浙江</option>
                                        <option value="陕西">陕西</option>
                                        <option value="山东">山东</option>
                                        <option value="天津">天津</option>
                                        <option value="重庆">重庆</option>
                                        <option value="黑龙江">黑龙江</option>
                                        <option value="吉林">吉林</option>
                                        <option value="辽宁">辽宁</option>
                                        <option value="内蒙古">内蒙古</option>
                                        <option value="河北">河北</option>
                                        <option value="河南">河南</option>
                                        <option value="新疆">新疆</option>
                                        <option value="甘肃">甘肃</option>
                                        <option value="宁夏">宁夏</option>
                                        <option value="山西">山西</option>
                                        <option value="青海">青海</option>
                                        <option value="西藏">西藏</option>
                                        <option value="湖北">湖北</option>
                                        <option value="安徽">安徽</option>
                                        <option value="江西">江西</option>
                                        <option value="湖南">湖南</option>
                                        <option value="贵州">贵州</option>
                                        <option value="云南">云南</option>
                                        <option value="广西">广西</option>
                                        <option value="福建">福建</option>
                                        <option value="海南">海南</option>
                                        <option value="香港">香港</option>
                                        <option value="澳门">澳门</option>
                                        <option value="台湾">台湾</option>
                                        <option value="其他">其他</option>
                                    </select>
                                </div>
                                <div class="col-sm-1">
                                    <label>&nbsp;</label>
                                    <button class="btn btn-success" onclick="searchRepertory()">查询</button>
                                </div>
                            </div>
                        </div>
                        <table id="exampleTable" data-mobile-responsive="true">
                        </table>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <script src="/js/jquery.min.js?v=2.1.4"></script>
    <script src="/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
    <script src="/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
    <script src="/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <script src="/js/plugins/layer/layer.js"></script>
    <script type="text/javascript" src="/js/appjs/front/search-product1.js"></script>
    <!--footer begin-->
    <!--[if IE 6]>
    <link href="http://www.ic.net.cn/media/css/ui/ie6fix.css" rel="stylesheet" type="text/css"/> <![endif]-->
    <!--[if IE 6]>
    <script type="text/javascript" src="http://www.ic.net.cn/media/javascript/DD_belatedPNG.js"></script>
    <script type="text/javascript" src="http://www.ic.net.cn/media/javascript/ie6fix_ui.js"></script> <![endif]-->

    <script src="/js/appjs/front/index.js" type="text/javascript"></script>
    <div th:replace="include::foot1">
    </div>
    <div th:replace="include::foot2">
    </div>
</div>
</body>
</html>